package org.bonorsoft.modules.education.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.bonorsoft.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 通知表
 * @Author: WilliamYe
 * @Date:   2021-06-22
 * @Version: V1.0
 */
@Data
@TableName("SYS_NOTICE")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Notice {

	/**ID（主键，uuid）*/
	@TableId(type = IdType.ID_WORKER_STR)
	@Excel(name = "ID（主键，uuid）", width = 15)
	private String noticeId;
	/**主题*/
	@Excel(name = "主题", width = 15)
	private String noticeTheme;
	/**内容*/
	@Excel(name = "内容", width = 15)
	private String noticeContent;
	/**发件人*/
	@Excel(name = "发件人", width = 15)
	@Dict(dicCode =  "userid" , dicText = "name" , dictTable = "SYS_USER")
	private String noticeSender;
	/**署名*/
	@Excel(name = "署名", width = 15)
	private String noticeSignature;
	/**发送时间(yyyy-mm-dd hh:mm:ss）*/
	@Excel(name = "发送时间(yyyy-mm-dd hh:mm:ss）", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date noticeSendingTime;
	/**通知类型（字典：普通通知、会议通知、紧急通知）*/
	@Excel(name = "通知类型（字典：普通通知、会议通知、紧急通知）", width = 15)
	private String noticeType;
	/**是否发送短信（1：是，0：否）*/
	@Excel(name = "是否发送短信（1：是，0：否）", width = 15)
	private String noticeMessage;
	/**短信发送状态（1：成功，0：失败）*/
	@Excel(name = "短信发送状态（1：成功，0：失败）", width = 15)
	private String noticeMessageStatus;
	/**通知发送状态（1：发送，0：草稿）*/
	@Excel(name = "通知发送状态（1：发送，0：草稿）", width = 15)
	private String noticeStatus;
	/**是否逻辑删除（1：是，0：否；默认0）*/
	@Excel(name = "是否逻辑删除（1：是，0：否；默认0）", width = 15)
	private String delFlag;
}
